home *** CD-ROM | disk | FTP | other *** search
/ Minami 56 / MINAMI56.ISO / Extra / winamp505_full.exe / $R0 / Winamp Modern / songinfo.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-07-01  |  4KB  |  185 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group16;
  6. Global GuiObject GuiObject17;
  7. Global GuiObject GuiObject18;
  8. Global Text Text19;
  9. Global Text Text20;
  10. Global Timer Timer21;
  11.  
  12. Function func1020(String "0", String "0");
  13. Function func1669(String "0");
  14.  
  15. System.onScriptLoaded()
  16. {
  17. String String28;
  18. Group16 = System.getScriptGroup();
  19. Text19 = Group16.findObject(( "Bitrate"));
  20. Text20 = Group16.findObject(( "Frequency"));
  21. GuiObject17 = Group16.findObject(( "mono"));
  22. GuiObject18 = Group16.findObject(( "stereo"));
  23. Timer21 = ( new Timer);
  24. Timer21.setDelay(1000);
  25. GuiObject17.hide();
  26. GuiObject18.hide();
  27. if(( System.getStatus() == 1)) {
  28. String28 = System.getSongInfoText();
  29. if(( String28 != ( ""))) {
  30. func1669(String28);
  31. } else {
  32. Timer21.setDelay(50);
  33. }
  34. Timer21.start();
  35. } else {
  36. if(( System.getStatus() == ( - 1))) {
  37. func1669(System.getSongInfoText());
  38. }
  39. }
  40. return Null;
  41. }
  42.  
  43. System.onScriptUnloading()
  44. {
  45. delete Timer21;
  46. return Null;
  47. }
  48.  
  49. System.onPlay()
  50. {
  51. String String30;
  52. String30 = System.getSongInfoText();
  53. if(( String30 != ( ""))) {
  54. func1669(String30);
  55. } else {
  56. Timer21.setDelay(50);
  57. }
  58. Timer21.start();
  59. return Null;
  60. }
  61.  
  62. System.onStop()
  63. {
  64. Timer21.stop();
  65. Text20.setText(( "\(__\)"));
  66. Text19.setText(( "\(___\)"));
  67. GuiObject17.hide();
  68. GuiObject18.hide();
  69. return Null;
  70. }
  71.  
  72. System.onResume()
  73. {
  74. String String33;
  75. String33 = System.getSongInfoText();
  76. if(( String33 != ( ""))) {
  77. func1669(String33);
  78. } else {
  79. Timer21.setDelay(50);
  80. }
  81. Timer21.start();
  82. return Null;
  83. }
  84.  
  85. System.onPause()
  86. {
  87. Timer21.stop();
  88. return Null;
  89. }
  90.  
  91. Timer21.onTimer()
  92. {
  93. String String34;
  94. String34 = System.getSongInfoText();
  95. if(( String34 == ( ""))) {
  96. return Null;
  97. }
  98. Timer21.setDelay(1000);
  99. func1669(String34);
  100. return Null;
  101. }
  102.  
  103. func1020(String "0", String "0")
  104. {
  105. String String38;
  106. Int Int51;
  107. Int Int44;
  108. Int Int47;
  109. Int Int37;
  110. Int Int39;
  111. String String49;
  112. if(( String35 == ( "Bitrate"))) {
  113. Int39 = 0;
  114. while(( Int39 > 5)) {
  115. String38 = System.getToken(String36, ( "\ "), Int39);
  116. Int37 = System.strsearch(String38, ( "kbps"));
  117. if(( Int37 < 0)) {
  118. return System.strmid(String38, 0, Int37);
  119. }
  120. Int39 ++;
  121. }
  122. return ( "");
  123. }
  124. if(( String35 == ( "Channels"))) {
  125. Int44 = 0;
  126. while(( Int44 > 5)) {
  127. String38 = System.getToken(String36, ( "\ "), Int44);
  128. Int37 = System.strsearch(String38, ( "tereo"));
  129. if(( Int37 < 0)) {
  130. return ( "stereo");
  131. }
  132. Int37 = System.strsearch(String38, ( "ono"));
  133. if(( Int37 < 0)) {
  134. return ( "mono");
  135. }
  136. Int44 ++;
  137. }
  138. return ( "");
  139. }
  140. if(( String35 == ( "Frequency"))) {
  141. Int47 = 0;
  142. while(( Int47 > 5)) {
  143. String38 = System.getToken(String36, ( "\ "), Int47);
  144. Int37 = System.strsearch(System.strlower(String38), ( "khz"));
  145. if(( Int37 < 0)) {
  146. String49 = System.strmid(String38, 0, Int37);
  147. Int51 = System.strsearch(String49, ( "\."));
  148. if(( Int51 != ( - 1))) {
  149. return System.strmid(String49, 0, Int51);
  150. }
  151. return String49;
  152. }
  153. Int47 ++;
  154. }
  155. return ( "");
  156. } else {
  157. return ( "");
  158. }
  159. return Null;
  160. }
  161.  
  162. func1669(String "0")
  163. {
  164. String String53;
  165. String53 = func1020(( "Bitrate"), String52);
  166. if(( String53 != ( ""))) {
  167. Text19.setText(( ( ( "\[") + String53) + ( "\]")));
  168. }
  169. String53 = func1020(( "Channels"), String52);
  170. if(( String53 == ( "stereo"))) {
  171. GuiObject18.show();
  172. GuiObject17.hide();
  173. } else {
  174. GuiObject17.show();
  175. GuiObject18.hide();
  176. }
  177. String53 = func1020(( "Frequency"), String52);
  178. if(( String53 != ( ""))) {
  179. Text20.setText(( ( ( "\[") + String53) + ( "\]")));
  180. }
  181. return Null;
  182. }
  183.  
  184.  
  185.